-- GENERATED SPELL FOR [Comar Villard] --


function spell0_5683(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(1776,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5683', 4000, 1)
end

function Sorts_5683(pUnit, Event)
local choix_sorts_5683 = math.random(0, 0)
if choix_sorts_5683 == 0 then
pUnit:RegisterEvent('spell0_5683', 1, 1)
end
end

function mob5683_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5683', math.random(1500, 3000), 1)
end

function mob5683_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5683_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5683_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5683, 1, 'mob5683_Action')
RegisterUnitEvent(5683, 2, 'mob5683_Leave')
RegisterUnitEvent(5683, 3, 'mob5683_Kill')
RegisterUnitEvent(5683, 4, 'mob5683_Die')
